package com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.Question;
import org.apache.ibatis.annotations.*;

import java.io.ByteArrayOutputStream;
import java.util.List;

public interface QuestionService {
    void addQuestion(Question question);

    void deleteQuestion(String id);

    void updateQuestion(Question question);

    List<Question> findAll();

    PageInfo findAll(String pageNum);

    Question findQuestionById(String id);

    /**
     * 获取了包含数据的流对象
     * 2021/10/18 14:08
     * created by yangyawen
     * @return  返回了包含报表数据的流对象
     * @throws Exception
     */
    ByteArrayOutputStream getReport() throws Exception;

    void toExamine(String id);
}
